<?php

    define('MI_HLA_VERSION', 'Beta 12');
    define('_BASE_CHARSET', 'utf-8');
    define('_BASE_MODULE_ID', 'HLA');

    define('HLA_TITLE', "TBG SSPal");
    define('REPORT_TITLE', "Morgan(TM) HLA SSP Typing");
    define('COPYRIGHT', "Texas BioGene, Inc");

    define('ROOT_REAL_PATH', str_replace("\\", '/', realpath('.')));

    $root_url = 'http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'];

    if (!preg_match("/http\:\/\/.*/i", $root_url))
        $root_url = 'http://'.$root_url;
    if (substr($root_url, -3) == ":80")
        $root_url = substr($root_url, 0, -3);
    else if (preg_match("/.*\:80\/.*/", $root_url))
        $root_url = preg_replace("/\:80\//", "/", $root_url, 1);
    if (preg_match("/\/+$/", $root_url))
        $root_url = preg_replace("/\/+$/", "", $root_url);

    define('ROOT_URL', $root_url);

    define('PAGE_ROW_COUNT', 20);

    define('USE_WAB_CONSOLE', strpos($_SERVER['SERVER_SOFTWARE'], 'WAB Console')>=0);

    $SysSupportLanguages = array('english', 'tchinese', 'schinese', 'japanese', 'korean');

    $SysSupportEncoding = array('iso-8859-1', 'big5', 'gbk', 'sjis', 'koi8-r');

?>
